import Discover from "@/components/chat/Discover.vue"; //发现

/**
 * iMAI目录配置
 */
export const menuItems = [
  {
    id: "1",
    name: "发现",
    src: require("../assets/icon_find.svg"),
    srcH: require("../assets/icon_find-h.svg"),
    class: "discover",
    component: Discover,
    kId:100,
  },
];

/**
 * iMAI目录 Map
 */
export const menuItemMap = menuItems.reduce((map, item) => {
  map.set(item.id, item);
  if (item.subItems?.length > 0) {
    item.subItems.forEach((subItem) => {
      map.set(subItem.id, subItem);
    });
  }
  return map;
}, new Map());

// 属于其它场景的id
export const otherMenuIds = menuItems.filter(item => item.isOtherMenu).map(item => item.id);
